package com.company.cloud.admin.modules.admin.controller.req;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.company.cloud.admin.constant.DeptTypeEnum;
import com.company.cloud.common.bean.BaseParam;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class DeptSavaParam extends BaseParam {


   @ApiModelProperty(value = "部门名称", required = true)
   @NotEmpty(message = "部门名称不能为空")
   private String name;

   @ApiModelProperty(value = "部门分类(DeptTypeEnum)", required = true)
   @NotEmpty(message = "部门分类不能为空")
   private String type= DeptTypeEnum.D_DEPT.getCode();

   @ApiModelProperty(value = "地址")
   private String addr;

   @ApiModelProperty(value = "经纬度类型")
   private String llType;

   @ApiModelProperty(value = "经度")
   private Double longitude;

   @ApiModelProperty(value = "纬度")
   private Double latitude;

   @ApiModelProperty(value = "上级部门ID(0：无上级部门)", required = true)
   @NotNull(message = "上级部门不能为空")
   private Integer parentId;

   @ApiModelProperty(value = "部门数据权限")
   private String dataAuth;

   @ApiModelProperty(value = "部门描述")
   private String remark;





}
